﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using HRProject.Code.Common;

namespace HRProject.Code.DTO
{
    public class BLAccountStatus
    {
        public static string GetLockStatusName(bool isLocked)
        {
            if (isLocked)
            {
                return ContentProvider.GetValue("AccountStatus_LockedOut");
            }
            return ContentProvider.GetValue("AccountStatus_NotLockedOut");
        }

        public static string GetApproveStatusName(bool isApproved)
        {
            if (isApproved)
            {
                return ContentProvider.GetValue("AccountStatus_Approved");
            }
            return ContentProvider.GetValue("AccountStatus_NotApproved");
        }

        public static string GetLockStatusCssClassName(bool isLocked)
        {
            if (isLocked)
            {
                return "locked";
            }
            return "unlocked";
        }

        public static string GetApproveStatusCssClassName(bool isApproved)
        {
            if (isApproved)
            {
                return "approved";
            }
            return "unapproved";
        }
    }
}
